{template "content","header"}
<script type="text/javascript" src="{JS_PATH}category.js"></script>
<!--main-->
<div class="main photo-channel">
	<div class="photo-slide">
        	<div id="photo-slide">
                    <div class="changeDivpic" id="big-pic">
					
                    </div>
            </div>
			<div class="photo-slideb">
						<a href="javascript:;" onclick="showpic('pre')" class="pre-bnt1"><span></span></a>
						<div class="photo_slideb_list cont" style="position:relative;">
							<ul class="cont picbig" id="pictureurls"  style="position:absolute">
							{pc:content action="position" posid="8" thumb="1" order="listorder DESC" sort="desc" num="8"}
							{loop $data $r}
						 		<li><a href="javascript:;" hidefocus="true" title="{$r['title']}"><img src="{thumb($r['thumb'],116, 62)}" alt="{$r['title']}" width="116" height="62" rel="{$r['thumb']}"/></a></li>
							{/loop}
							{/pc}
							</ul>
						</div>
						<a href="javascript:;" onclick="showpic('next')" class="pre-bnt2"><span></span></a>
			</div>
    </div>
    <div class="photo-hots">
        	<h4>热点关注</h5>
        	<ul class="content photo-hot">
			{pc:content action="hits" catid="$catid" num="6" order="monthviews DESC"}
				{loop $data $r}
					<li>
                    <div class="img-wrap">
                        <a href="{$r[url]}" title="{$r[title]}" target="_blank"><img src="{thumb($r[thumb],130,88)}" width="130" height="88" /></a>
                    </div>
                    <a href="{$r[url]}" title="{$r[title]}" target="_blank">{str_cut($r[title],16, '')}</a>
                </li>
				{/loop}
			{/pc}
            </ul>
    </div>
    <div class="bk10"></div>
	{loop $array_child $cid}
	{php $chlidids = explode(',', $CATEGORYS[$cid][arrchildid])}
	{php unset($chlidids[array_search($cid, $chlidids)]);$n=1;}
    <div class="photo-cat">
        <div class="content">
        	<h5>
            <a href="{$CATEGORYS[$cid][url]}">{$CATEGORYS[$cid][catname]}</a>
			<span class="blue">
            <a href="{$CATEGORYS[$cid][url]}" class="more">全部>></a>
			{loop $chlidids $chlidid}
            {if $n!=1} | {/if}
				<a href="{$CATEGORYS[$chlidid][url]}">{$CATEGORYS[$chlidid][catname]}</a>
			{/loop}
			</span>
			</h5>
            <ul class="photo-list picbig">
				{pc:content action="lists" catid="$cid" num="10" order="id DESC"}
					{loop $data $r}
					<li>
                    <div class="img-wrap">
                        <a href="{$r[url]}" title="{$r[title]}" target="_blank"><img src="{thumb($r[thumb],150,112)}" /></a>
                    </div>
                    <a href="{$r[url]}" title="{$r[title]}" target="_blank">{str_cut($r[title],28)}</a>
					</li>
					{/loop}
				{/pc}
            </ul>
        </div>
    </div>
	<div class="bk10"></div>
	{/loop}
</div>
{template "content","footer"}